/**
 * 
 */
package com.zaprit.common.service;

import java.util.List;

import com.rdo.common.bo.Attachment;
import com.zaprit.common.exception.CommonException;

/**
 * @author DELL
 */
public interface CommonService
{
	/**
	 * @param scopeId
	 * @param userId
	 * @param attachment
	 * @return Attachment
	 * @throws CommonException
	 */
	public Attachment addAttachment(String scopeId, String userId, Attachment attachment) throws CommonException;

	/**
	 * @param scopeId
	 * @param userId
	 * @param attachment
	 * @return boolean
	 * @throws CommonException
	 */
	public boolean updateAttachment(String scopeId, String userId, Attachment attachment) throws CommonException;

	/**
	 * @param scopeId
	 * @param userId
	 * @param attachmentId
	 * @return Attachment
	 * @throws CommonException
	 */
	public Attachment getAttachment(String scopeId, String userId, String attachmentId) throws CommonException;

	/**
	 * @param scopeId
	 * @param userId
	 * @param attachmentIds
	 * @return List<Attachment>
	 * @throws CommonException
	 */
	public List<Attachment> getAttachments(String scopeId, String userId, List<String> attachmentIds)
			throws CommonException;
}
